#ifndef		__H_INIFILE
#define   __H_INIFILE

#include "head.h"

#define MAXBUFLEN 1024
#define FILE_EOF	0
#define uchar unsigned char

int rtrim( char *Pts );

int ltrim( char *Pts );

int trim(char *Pts);


int MemCmp( char *psStr1, char *psStr2 );

int ReadLine(int iFd,char *psLine,int *iLineLen,int *iOffset);


int UpdateLine(int iOffSet,char *psLine,char *psFileName);

int ReadEntry(int iFd,char *psEntry,char *psValue,int *piOffSet);


int ReadString(char *psFileName,char *psSection,char *psEntry,char *psValue);

int ReadInteger(char *psFileName,char *psSection,char *psEntry,int *piValue);


int WriteString(char *psFileName,char *psSection,char *psEntry,char *psValue);

int StringToLower(char *iszString);
#endif
